<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>CopyList</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">CopyList()</font></b></p>
<p><b>语法</b></p><blockquote>

Result = <font color="#3A3966"><b>CopyList</b></font>(SourceList(), DestinationList())</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Copy the contents of one list to another list. After a successful copy, the two lists are identical. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>SourceList()</i></td>
<td width="90%"> 
 
The list from which the elements will be copied. 

 

</td></tr>
<tr><td><i>DestinationList()</i></td>
<td> 
 
The list to which the elements will be copied. The elements in this list before the copy will be deleted. 
If this list does not have the same type (native or structured) as the SourceList() then the copy will fail. 

 

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>



Returns non-zero if the copy succeeded and zero otherwise. 

 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">NewList</font></b> <font color="#3A3966">Friends$</font>()
  <b><font color="#3A3966">NewList</font></b> <font color="#3A3966">FriendsCopy$</font>()
  
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">Friends$</font>())
<font color="#3A3966">  Friends$</font>() = "John"
  
<font color="#3A3966">  AddElement</font>(<font color="#3A3966">Friends$</font>())
<font color="#3A3966">  Friends$</font>() = "Elise"

<font color="#3A3966">  CopyList</font>(<font color="#3A3966">Friends$</font>(),<font color="#3A3966"> FriendsCopy$</font>())
  
  <b><font color="#3A3966">ForEach</font></b> <font color="#3A3966">FriendsCopy$</font>()
    <b><font color="#3A3966">Debug</font></b> <font color="#3A3966">FriendsCopy$</font>()
  <b><font color="#3A3966">Next</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="../array/copyarray.html">CopyArray()</a>, <a href="../map/copymap.html">CopyMap()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=clearlist.html>ClearList()</a> - <a href="index.html">List Index</a> - <a href="countlist.html">CountList()</a> -&gt;<br><br>

</body></html>